
import { AxiosResponse } from "axios";

/**登录接口参数模型*/
export interface LoginParam{
	userName:string,
	passWord:string
}

/**后台登录用户*/
export interface AdminUser{
	_id:       string;
	nickName:  string;
	userName:  string;
	userType:  string;
	avatarUrl: string;
	gender:    number;
	realName:  string;
	phone:     string;
	status:    string;
	access:    string[];
}

/**登录接口返回的数据模型*/
export interface LoginRes{
	/**登录token */
	token:string,
	user:AdminUser
}

/**修改密码接口参数模型*/
export interface ChangePassword{
	old_password:string,
	password:string,
	password2:string,
}
